﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppLib;
using System.Security.Cryptography;


namespace MidApp
{
    public class Hasher
    {

        public static string PasswordHasher(string password)
        {
            HashAlgorithm algorithm = SHA1.Create();
            string ret = Convert.ToBase64String(algorithm.ComputeHash(Encoding.ASCII.GetBytes(password)));
            return ret;
        }
    }
}

